diff --git a/plugin/AD_Overlay/AD_Overlay.php b/plugin/AD_Overlay/AD_Overlay.php old mode 100644 new mode 100755 index e2dc4809b..5683004ef --- a/plugin/AD_Overlay/AD_Overlay.php +++ b/plugin/AD_Overlay/AD_Overlay.php @@ -1,125 +1,131 @@ Help"; - + return $txt . $help; } public function getName() { return "AD_Overlay"; } public function getUUID() { return "ADO73225-3807-4167-ba81-0509dd280e06"; } public function getPluginVersion() { return "1.0"; } public function getEmptyDataObject() { global $global; $obj = new stdClass(); $o = new stdClass(); $o->type = "textarea"; $o->value = ' '; $obj->adText = $o; //$obj->allowUsersToAddCustomText = false; //Where to display overlays, by default. Assuming the included stylesheet is used, the following values are supported: // "top-left", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left". $obj->align = "bottom-left"; $obj->showBackground = true; //bottom aligned overlays will adjust positioning when the control bar minimizes. $obj->attachToControlBar = false; /* $obj->start = true; $obj->mid25Percent = false; $obj->mid50Percent = false; $obj->mid75Percent = false; $obj->end = false; $obj->durationInSeconds = 30; * */ $obj->debug = false; //$obj->adWidth = 0; //$obj->adHeight = 0; return $obj; } public function getTags() { return array('free'); } public function getHeadCode() { + if (empty($_GET['videoName']) && empty($_GET['u'])) { + return false; + } $obj = $this->getDataObject(); global $global; $style = "width: 100%;"; - if(!empty($obj->adWidth) && !empty($obj->adHeight)){ + if (!empty($obj->adWidth) && !empty($obj->adHeight)) { $style = "width: $obj->adWidth; height: width: $obj->adHeight;"; } $css = ''; $css .= ''; return $css; } public function getFooterCode() { + if (empty($_GET['videoName']) && empty($_GET['u'])) { + return false; + } $obj = $this->getDataObject(); global $global; $js = '
'; $js .= ''; $js .= ''; return $js; } }